//
//  NetworkManager.h
//  QuickCare
//
//  Created by lidabiao on 16/7/11.
//  Copyright © 2016年 lidabiao. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

#define kNetworkManager [NetworkManager shareManager]

@interface NetworkManager : AFHTTPSessionManager

+(instancetype)shareManager;

-(void)requestDataWithURLString:(NSString *)URLString
                     parameters:(NSDictionary *)parameters
                        success:(void(^)(id response))success
                        failure:(void(^)(NSError *error))failure;

-(void)requestWeatherWithURLString:(NSString *)URLString
                     parameters:(NSDictionary *)parameters
                        success:(void(^)(id response))success
                        failure:(void(^)(NSError *error))failure;

@end
